package org.the.gsdo.server;

import org.the.gsdo.shared.SendTextToServer;
import org.the.gsdo.shared.SendTextToServerResult;

import com.gwtplatform.dispatch.server.ExecutionContext;
import com.gwtplatform.dispatch.server.actionhandler.AbstractActionHandler;
import com.gwtplatform.dispatch.shared.ActionException;

public class SendTextToServerHandler extends AbstractActionHandler<SendTextToServer, SendTextToServerResult> {

	public SendTextToServerHandler() {
		super(SendTextToServer.class);
	}

	@Override
	public SendTextToServerResult execute(SendTextToServer action, ExecutionContext context)
			throws ActionException {
		return BeanProvider.getBean(GreetingManager.class).execute(action);
	}

	@Override
	public Class<SendTextToServer> getActionType() {
		return SendTextToServer.class;
	}

	@Override
	public void undo(SendTextToServer action, SendTextToServerResult result, ExecutionContext context)
			throws ActionException {

	}

}